package com.ruoyi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 申请表对象 t_request_form
 * 
 * @author mzr
 * @date 2023-12-11
 */
@Data
public class TRequestForm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 申请单名称 */
    @Excel(name = "申请单名称")
    private String name;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /** 申请单状态  0-待审核  3-审核未通过 1-审核通过 2-审核中  4 - 撤回*/
    @Excel(name = "申请单状态")
    private Integer status;

    @Excel(name = "驳回原因")
    private String rejectRemark;

    @Excel(name = "审核备注")
    private String auditRemark;

    @Excel(name = "申请人")
    private Long petitionerId;

    @Excel(name = "总审批次数")
    private Integer approvalTimes;

    @Excel(name = "已审批次数")
    private Integer approvalDraTimes;

    @Excel(name = "撤回原因")
    private String revocationRemark;

    @Excel(name = "凭证")
    private String fileInfo;

    private String userName;
    //0、1 - 普通  2 - 发卡密  3 - 还款
    private int fromType;

    @Override
    public String toString() {
        return "TRequestForm{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", creatTime=" + creatTime +
                ", changeTime=" + changeTime +
                ", status=" + status +
                ", rejectRemark='" + rejectRemark + '\'' +
                ", auditRemark='" + auditRemark + '\'' +
                ", petitionerId=" + petitionerId +
                ", approvalTimes=" + approvalTimes +
                ", approvalDraTimes=" + approvalDraTimes +
                ", revocationRemark='" + revocationRemark + '\'' +
                ", fileInfo='" + fileInfo + '\'' +
                ", userName='" + userName + '\'' +
                ", fromType=" + fromType +
                '}';
    }
}
